//
//  QuizSubmitTeacherTalkView.m
//  SubmitVCDemo
//
//  Created by Tianlong on 2018/1/24.
//  Copyright © 2018年 Tianlong. All rights reserved.
//

#import "QuizTalkView.h"

#define ViewH 62

@interface QuizTalkView ()
@property (weak, nonatomic) IBOutlet UIImageView *iconV;
@property (weak, nonatomic) IBOutlet UIView *redPoint;
@property (weak, nonatomic) IBOutlet UILabel *talkContentL;
@end

@implementation QuizTalkView

- (void)awakeFromNib{
    [super awakeFromNib];
    self.redPoint.layer.cornerRadius = self.redPoint.bounds.size.width*0.5;
    self.redPoint.layer.masksToBounds = YES;
}

#pragma mark - 快速创建
+ (instancetype)talkView{
    QuizTalkView *talkView = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([QuizTalkView class]) owner:self options:nil] lastObject];
    return talkView;
}

#pragma mark - 更新红点的状态
- (void)hiddenRedPoint:(BOOL)hidden{
    self.redPoint.hidden = hidden;
}

#pragma mark - 设置老师头像
/**
 设置老师的头像
 */
- (void)icon_setImageWithURL:(NSString *)url placeholder:(NSString *)imageName{
    self.iconV.image = [UIImage imageNamed:@""];
}

#pragma mark - 点击老师有话说
- (IBAction)clickedTalkView:(id)sender {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:@"" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"done", nil];
    [alert show];
}

#pragma mark - 获取高度
+ (CGFloat)getRealHeight{
    return ViewH;
}

@end
